package com.itcam.thread_.producer_consumer;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * Author:Cammy.Wu
 * Date:2024-05-14
 * Description:共享区
 */


public class WareHouse {
    public static boolean mark = false;
    public static ReentrantLock lock = new ReentrantLock();

    public static Condition producer = lock.newCondition();
    public static Condition consumer = lock.newCondition();
}
